package org.t2.game.server.module.mail.model;

import java.time.LocalDateTime;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.enuma.AsyncType;
import org.gaming.service.repository.annotation.JvmCache;
import org.gaming.service.service.DailyResetEntity;
import org.gaming.service.service.jvm.PlayerOneToOneEntity;
import org.springframework.stereotype.Repository;

/**
 * @author yh
 * @date 2023/6/1
 * @apiNote
 */
@Repository
@JvmCache
@Table(comment = "玩家邮件表", dbAlias = "game", asyncType = AsyncType.INSERT)
public class MailPlayer extends PlayerOneToOneEntity implements DailyResetEntity {
	@Column(comment = "最后读取系统邮件的时间")
    private LocalDateTime readTime = LocalDateTime.now();
	@Column(comment = "最后读取系统邮件的时间，以此为准")
	private int lastReadTime;
	@Column(comment = "每日重置时间")
	private LocalDateTime dailyTime = LocalDateTime.now();
	@Column(comment = "是否已发送每日奖励")
	private boolean sendDailyReward;
	
	public LocalDateTime getReadTime() {
		return readTime;
	}
	public void setReadTime(LocalDateTime readTime) {
		this.readTime = readTime;
	}
	public int getLastReadTime() {
		return lastReadTime;
	}
	public void setLastReadTime(int lastReadTime) {
		this.lastReadTime = lastReadTime;
	}
	public LocalDateTime getDailyTime() {
		return dailyTime;
	}
	public void setDailyTime(LocalDateTime dailyTime) {
		this.dailyTime = dailyTime;
	}
	public boolean isSendDailyReward() {
		return sendDailyReward;
	}
	public void setSendDailyReward(boolean sendDailyReward) {
		this.sendDailyReward = sendDailyReward;
	}
}
